package com.example.practice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Administrator
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) //去掉数据源
public class PracticeApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(PracticeApplication.class, args);
//        PracticeController bean = run.getBean(PracticeController.class);
//        bean.getAll();
//
//        ParentChildController bean1 = run.getBean(ParentChildController.class);
//        ArrayList<ParentChildTree> a = bean1.a();
//
//        System.out.println(bean1.b());
//
//        System.out.println("ok....."+ a);
    }

}
